package org.zhouhe.web.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class ColumnCheckbox extends TagSupport {
	private static final long serialVersionUID = 1L;
    @Override  
    public int doStartTag() throws JspException {
    	try {
			JspWriter out = pageContext.getOut();
			out.write("<th field='ck' checkbox=true></th>");
		} catch (Exception e) {
			e.printStackTrace();
		}
    	return SKIP_BODY;
    }

    @Override  
    public int doEndTag() throws JspException {
    	return EVAL_PAGE;
    }
    
}
